#include "TOMVARData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator==(const TOMVARData::DISCRETEData& val1,
                                        const TOMVARData::DISCRETEData& val2) {
  FIELD_COMPARE(m_DVID)
  return true;
}
bool SG::DataStructure::FEM::operator==(const TOMVARData::SYMPLANEData& val1,
                                        const TOMVARData::SYMPLANEData& val2) {
  FIELD_COMPARE(m_CID)
  FIELD_COMPARE(m_MS1)
  FIELD_COMPARE(m_MS2)
  FIELD_COMPARE(m_MS3)
  FIELD_COMPARE(m_CSM)
  FIELD_COMPARE(m_NCSM)
  return true;
}
bool SG::DataStructure::FEM::operator==(const TOMVARData::TOMVARIDData& val1,
                                        const TOMVARData::TOMVARIDData& val2) {
  FIELD_COMPARE(m_TID)
  FIELD_COMPARE(m_C0)
  FIELD_COMPARE(m_C1)
  return true;
}

bool SG::DataStructure::FEM::operator==(const TOMVARData& val1,
                                        const TOMVARData& val2) {
  FIELD_COMPARE(m_id)
  FIELD_COMPARE_ARR(m_PTYPE, 8)
  FIELD_COMPARE(m_pId)
  FIELD_COMPARE(m_FID)
  FIELD_COMPARE_ARR(m_PNAME, 8)
  FIELD_COMPARE(m_XINIT)
  FIELD_COMPARE(m_XLB)
  FIELD_COMPARE(m_XUB)
  FIELD_COMPARE(m_DELXV)
  FIELD_COMPARE(m_domainId)
  return true;
}